home *** CD-ROM | disk | FTP | other *** search
- unit Drag2U;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, ExtCtrls;
-
- type
- TForm1 = class(TForm)
- public
- procedure WMNCHitTest(var Msg: TMessage);
- message wm_NCHitTest;
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.WMNCHitTest(var Msg: TMessage);
- begin
- inherited;
- if Msg.Result = HTClient then
- Msg.Result := HTCaption
- end;
-
- end.
-